<?php
/**
 * Created by PhpStorm.
 * User: W
 * Date: 2018/2/24
 * Time: 16:14
 */

namespace app\common\model;

use think\Model;

class Transactions extends Model
{
    protected function getFlowAttr($value)
    {
        $status = [1 => '收入',2 => '支出'];
        return ['val' => $value, 'text' => $status[$value]];
    }

    protected function getTypeAttr($value)
    {
        $status = [0 => '未知' ,1 => '阅读收益',2 => '分享收益',3=>'提现',4=>'提现被拒返款',5=>'签到',6=>'徒弟收益',7=>'徒孙收益',8=>'系统充值',9=>'系统扣除'];
        return ['val' => $value, 'text' => $status[$value]];
    }
}
